package com.sservice.commonBusiness.service ;

import com.sservice.base.entity.dto.ListResult;
import com.sservice.commonBusiness.e.BusinessApply;

/**
 *
 * Created by byte_su@163.com on 2018/02/26.
 */
public interface BusinessApplyService {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(BusinessApply record);

    BusinessApply selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusinessApply record);

    ListResult<BusinessApply> page(BusinessApply record);

    /**
     * @param personId 申请用户ID
     * @param targetId 目标ID
     * @param reason   申请原因
     * @param remark   变更内容
     * @param type1
     * @return
     */
    int log(Integer personId, Integer targetId, String reason, String type1, String remark,String changeContent);

    /**
     * @param id          记录ID
     * @param checkId     审核用户Id
     * @param checkReason 审核原因
     * @param status      审核通过
     * @return
     */
    int check(Integer id, Integer checkId, String checkReason, Integer status);


}
